<template>
    <div>
      <h1>Admin</h1>
      <div v-if="user && user.role === 'ADMIN'">
        <p>Admin content goes here</p >
      </div>
      <div v-else>
        <p>You do not have permission to view this page</p >
      </div>
    </div>
  </template>
  
  <script>
  import { mapGetters } from 'vuex';
  
  export default {
    computed: {
      ...mapGetters(['user'])
    }
  };
  </script>